package com.nit.store.service;

import com.nit.store.pojo.dto.input.UserDto;
import com.nit.store.pojo.entity.UserEntity;
import com.nit.store.pojo.vo.UserInfo;
import com.nit.store.pojo.vo.output.LoginOutput;

public interface UserService {
    /**
     * 用户注册
     * @param userDto
     */
    void register(UserDto userDto);


    /**
     * 登录
     * @param userDto
     * @return
     */
    LoginOutput login(UserDto userDto);

    /**
     * 修改密码
     * @param oldPassword
     * @param newPassword
     * @param uid
     */

    void updatePassword(String oldPassword,String newPassword,Long uid);

    /**
     * 展示用户信息
     *  @param uid
     */
    UserEntity showUserInfo(Long uid);

    /**
     * 修改用户信息
     * @param userInfo
     * @return
     */
    void updateUserInfo(UserInfo userInfo);

    /**
     * 修改用户头像
     * @param uid
     */
    void updateAvatar(Long uid,String avatar);
}
